package com.igeekhome.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 
 * className AddressDaoImpl
 *
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class DtreeBean {

	private Integer id;
	
	private String title;
	
	private String checkArr;
	
	private Integer parentId;
	
	public static DtreeBean  build(Integer id,String title,Integer parentId){
		return new DtreeBean().setId(id).setTitle(title).setParentId(parentId).setCheckArr("0");
	}
	
	public static DtreeBean  success(Integer id,String title){
		return new DtreeBean().setId(id).setTitle(title).setParentId(0).setCheckArr("0");
	}
	
	
}
